Imports System.Configuration.ConfigurationSettings

Public Class ResetPasswordNotification
    Inherits MailBase

    Protected Overrides Sub PrepareFields()
        Me.Fields("#subject#") = AppSettings("EmailTemplate.ResetPasswordNotification.Subject")
        Me.Subject = Me.Fields("#subject#")
        Me.Receiver = CustomerEmail
    End Sub

    Public Property CustomerEmail() As String
        Set(ByVal Value As String)
            Me.Fields("#LoginName#") = Value
        End Set
        Get
            Return Me.Fields("#LoginName#")
        End Get
    End Property

    Public Property UserName() As String
        Set(ByVal Value As String)
            Me.Fields("#User#") = Value
        End Set
        Get
            Return Me.Fields("#User#")
        End Get
    End Property

    Public Property Password() As String
        Set(ByVal Value As String)
            Me.Fields("#Password#") = Value
        End Set
        Get
            Return Me.Fields("#Password#")
        End Get
    End Property

    Public Overrides ReadOnly Property MailTemplatePath() As String
        Get
            Return System.IO.Path.Combine(Config.TemplateBaseFolder, _
                AppSettings("EmailTemplate.ResetPasswordNotification.Location"))
        End Get
    End Property
End Class
